//
//  UITableViewCell+Extension.m
//  maintain
//
//  Created by 郑想 on 15/10/22.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import "UITableViewCell+Extension.h"

@implementation UITableViewCell (Extension)

- (void)changeImageViewOfSize:(CGSize)imageSize
{
//    UIGraphicsBeginImageContext(imageSize);
    UIGraphicsBeginImageContextWithOptions(imageSize, NO, [UIScreen mainScreen].scale);
    CGRect imageRect = CGRectMake(0.0, 0.0, imageSize.width, imageSize.height);
    [self.imageView.image drawInRect:imageRect];
    self.imageView.image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
}

@end